package com.wondertek.poms.dao.po;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Proxy;

import javax.persistence.*;
import java.io.Serializable;

/** 专辑
 *@author gaozhengxing gaozhenghang@wondertek.com.cn
 *@date 2021/1/3 16:53*/
@Data
@Entity
@Table(name = "ALBUM_CONT")
@DynamicUpdate
@DynamicInsert
@Proxy(lazy = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AlbumCont implements Serializable {
	private static final long serialVersionUID = -5220976865722504516L;
	@Id
	@Column(name = "ID")
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "ALBUM_CONT_SEQ")
	@SequenceGenerator(name = "ALBUM_CONT_SEQ", allocationSize = 1, sequenceName = "ALBUM_CONT_SEQ")
	private Long id;
	@Column(name = "ALBUM_ID")
	private Long albumId;//专辑id（专辑节目id）
	@Column(name = "ALBUM_CONT_ID")
	private String albumContId;//专辑内容id
	@Column(name = "PRD_INFO_ID")
	private Long prdInfoId;//产品包
	@Column(name = "SUB_PRD_CONT_ID")
	private Long subPrdContId;//专辑包含节目id
	@Column(name = "SUB_CONT_ID")
	private String subContId;//专辑包含内容id
	@Column(name = "SORT")
	private Integer sort;//排序

}
